<!DOCTYPE html>
<html lang="zh">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <meta name="renderer" content="webkit">
    <title>待办事项</title>
    <link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
    <link rel="stylesheet" href="css/base.css">
    <link rel="stylesheet" href="css/page/index.css">
    <script src="js/lib/vue.js"></script>
</head>

<body>
    <main class="main" id="todo">
        <input class="addItemInput" placeholder="准备做什么？"
            v-model.trim="todoItem"
            @keyup.enter="addTodoItem"
        >
        <ul class="todo">
            <todo-item
                v-for="(item, index) of todos"
                :item="item"
                :key="index"
                :index="index"
                @delete-item="deleteItem"
            ></todo-item>
        </ul>
    </main>
    <script src="js/page/index.js"></script>
</body>

</html>